package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll();
	PageResult findPage(QueryPageBean queryPageBean);

    void add(Role role, Integer[] menuIds, Integer[] permissionIds);


    Role findById(Integer id);


    void edit(Role role, Integer[] menuIds, Integer[] permissionIds);

    void deleteRole(Integer id);
}
